import request from '@/utils/request'

// 封装接口
// 获取商品列表
export const getGoodsList = () => {
  return request.get('/goods')
}

// 获取商品详情
export const getGoodsDetail = (id) => {
  return request.get(`/goods/${id}`)
}
// 获取商品评价
export const getGoodsReviews = (id) => {
  return request.get(`/goods/${id}/reviews`)
}
// 获取推荐商品
export const getGoodsRecommend = (id) => {
  return request.get(`/goods/${id}/recommend`)
}
